package com.huobao.yunying.adapters;

import com.huobao.yunying.entity.Shaixuan;
import com.huobao.zhangying.R;

import android.content.Context;
import joanzapata.android.BaseAdapterHelper;
import joanzapata.android.QuickAdapter;

public class Adapter_shaixuan_Frist extends QuickAdapter<Shaixuan> {

	public Adapter_shaixuan_Frist(Context context) {
		super(context, R.layout.item_shaixuan_frist);
	}

	@Override
	protected void convert(BaseAdapterHelper helper, Shaixuan data) {
		helper.setText(R.id.tv_name, data.name).setText(R.id.tv_content, data.selectValue == null ? "选择 >"
				: data.selectValue.name.equals("") ? data.selectValue.value + " >" : data.selectValue.name + " >");
	}

}
